package com.zyh.stream;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @Author zyh
 * @Date 2024/8/5 11:06
 * @Description 读入一个字符
 */

public class StreamDemo2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\course\\02-JavaSE进阶\\day09-IO流\\素材\\080-LinkedHashMap.avi");
        FileOutputStream fos = new FileOutputStream("D:\\course\\02-JavaSE进阶\\day09-IO流\\素材\\b\\123-LinkedHashMap.avi");
        int len = -1;
        while ((len = fis.read()) != -1) {
            fos.write(len);
        }
    }
}
